package org.htmlparser.filters;

import org.htmlparser.Node;
import org.htmlparser.NodeFilter;

public class NotFilter
  implements NodeFilter
{
  protected NodeFilter mPredicate;

  public NotFilter()
  {
    setPredicate(null);
  }

  public NotFilter(NodeFilter paramNodeFilter)
  {
    setPredicate(paramNodeFilter);
  }

  public boolean accept(Node paramNode)
  {
    int i;
    if ((this.mPredicate != null) && (!(this.mPredicate.accept(paramNode))))
      i = 1;
    while (true)
    {
      return i;
      i = 0;
    }
  }

  public NodeFilter getPredicate()
  {
    return this.mPredicate;
  }

  public void setPredicate(NodeFilter paramNodeFilter)
  {
    this.mPredicate = paramNodeFilter;
  }
}